#ifndef __THREAD_H__
#define __THREAD_H__

int bbs_post_thread_t(struct threadraw* tr);
int bbs_reply_thread_t(struct postraw* pr);
int bbs_get_threads_from_start_t(unsigned int board_id, int start, int num, int sort_type, threadent_t* te);
//int bbs_get_threads_with_node_t(unsigned int board_id, int start, int num, int sort_type, threadent_t* te, struct boardglaze* bg);
int bbs_get_elite_threads_from_start_t(unsigned int board_id, int start, int num, int sort_type, threadent_t* te);
int bbs_get_threads_from_id_t(unsigned int board_id, unsigned int thread_id, int num, int sort_type, threadent_t* te);
//int bbs_get_elite_threads_with_node_t(unsigned int board_id, int start, int num, int sort_type, threadent_t* te, struct boardglaze* bg);
int bbs_get_newest_threads_t(unsigned int board_id, threadent_t* te);
int bbs_get_hotest_threads_t(unsigned int board_id, threadent_t* te);
int bbs_get_posts_from_start_t(unsigned int board_id, unsigned int thread_id);
int bbs_set_top_t(unsigned int board_id, unsigned int thread_id);
int bbs_unset_top_t(unsigned int board_id, unsigned int thread_id);
int bbs_set_elite_t(unsigned int board_id, unsigned int thread_id);
int bbs_unset_elite_t(unsigned int board_id, unsigned int thread_id);
int bbs_lock_thread_t(unsigned int board_id, unsigned int thread_id);
int bbs_unlock_thread_t(unsigned int board_id, unsigned int thread_id);
int bbs_delete_thread_t(unsigned int board_id, unsigned int thread_id);
int bbs_undelete_thread_t(unsigned int board_id, unsigned int thread_id);
int bbs_delete_post_t(unsigned int board_id, unsigned int thread_id);
int bbs_undelete_post_t(unsigned int board_id, unsigned int thread_id);
int bbs_set_type_thread_t(unsigned int board_id, unsigned int thread_id, int type);
int bbs_unset_type_thread_t(unsigned int board_id, unsigned int thread_id);
int bbs_set_attach_type_thread_t(unsigned int board_id, unsigned int thread_id, int attach_type);
int bbs_unset_attach_type_thread_t(unsigned int board_id, unsigned int thread_id, int attach_type);
int bbs_set_status_thread_t(unsigned int board_id, unsigned int thread_id, int status);
int bbs_unset_status_thread_t(unsigned int board_id, unsigned int thread_id, int status);
int bbs_edit_thread_t(struct threadraw* tr);

#endif
